<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>编辑库存价格信息</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath }/plugins/jQuery/themes/default/easyui.css"/>
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath }/plugins/jQuery/themes/icon.css"/>
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath }/plugins/jQuery/demo.css"/>
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath }/admin/css/input1.css"/>

<script src="${pageContext.request.contextPath }/plugins/jQuery/jquery.min.js"></script>
<script src="${pageContext.request.contextPath }/plugins/jQuery/jquery.easyui.min.js"></script>
<script src="${pageContext.request.contextPath}/plugins/jQuery/easyui-lang-zh_CN.js"></script>


<script>
	$(function(){
		
		$("a[name='qsave']").linkbutton({text:'保存库存价格信息',plain:true,iconCls:'icon-save'});
		$("a[name='qback']").linkbutton({text:'返回商品列表',plain:true,iconCls:'icon-back'});
		$('#dlg').dialog('close');
		
	});
	
	function doSub(){
		$('#addgoods').submit();
	}
	
</script>
</head>

<body>
<form method="post" id="addgoods" action="${pageContext.request.contextPath }/goods/editstoreprice">
<div class="i-container">
	<div class="i-common i-title">修改<span style="color:red;">【${goodsInfo.goods_name }】</span>今日库存和价格信息
		<span style="color:red; margin-left:30px;">${addMsg }</span>
		<div class="i-btn">
			<a id="btn" href="javascript:doSub()" name="qsave"></a>
			<a id="btn" href="javascript:history.go(-1)" name="qback"></a>
		</div>
		<div style=" clear:both;"></div>
	</div>
    
    <div class="i-common i-cnt-left">销售件价：</div>
    <div class="i-common i-cnt-right">
        <input type="hidden" name="price.id" value="${price.id }"/>
        <input type="hidden" name="price.goods_id" value="${price.goods_id }"/>
        <input type="hidden" name="method" value="${method }"/>
    	<input name="price.sale_price" id="sale_price" class="easyui-textbox" value="${price.sale_price }" style="width:210px;height:26px"/>
    </div>
    
    <div class="i-common i-cnt-middle">件优惠折扣：</div>
    <div class="i-common i-cnt-right">	
    	<input name="price.minus_price" id="minus_price" class="easyui-textbox" value="${price.minus_price }" style="width:210px;height:26px"/>
    </div>
    <div class="i-common i-cnt-middle">销售斤价：</div>
    <div class="i-common i-cnt-right">
    	<!-- 
    	<input name="price.unit_price" id="unit_price" class="easyui-textbox" value="${price.unit_price }" style="width:210px;height:26px"/>
    	 -->
    	 <span style="color:red;">保存时将由系统自动计算</span>
    </div>
    <div style="clear:both;"></div>

    
    <div class="i-common i-cnt-left">销售库存：</div>
    <div class="i-common i-cnt-right">	
        <input type="hidden" name="store.store_id" value="${store.store_id }"/>
        <input type="hidden" name="store.goods_id" value="${store.goods_id }"/>
    	<input name="store.store_num" id="store_num" class="easyui-textbox" value="${store.store_num }"  style="width:210px;height:26px"/>
    </div>
    <div class="i-common i-cnt-middle">限购数量：</div>
    <div class="i-common i-cnt-right">
    	<input name="store.limit_num" id="limit_num" class="easyui-textbox" value="${store.limit_num }" style="width:210px;height:26px"/>
    </div>
    <div style="clear:both;"></div> 

</div>

</form>
</body>
</html>
